macos: implement GdkDrop for macOS
authorChristian Hergert <chergert@redhat.com>
Fri, 18 Jun 2021 00:23:10 +0000 (17:23 -0700)
committerChristian Hergert <chergert@redhat.com>
Fri, 18 Jun 2021 00:26:42 +0000 (17:26 -0700)
commit3fd931d3929a02dcddbeeca36990986b7af003a1
treec7237f0721147e6bc132b6fabe72ac7a262b863a
parent6c1dce28784d79166e102e117e8ed21f084473f5
macos: implement GdkDrop for macOS

This gets the basic mechanics of the drop portion of DnD working on the
macOS backend. You can drag, for example, from TextEdit into GNOME
Text Editor when using the macOS backend.

Other content formats are supported, and match what is currently
supported by the clipboard backend as the implementation to read
from the pasteboard is shared.

Currently, we look up the GdkDrag for the new GdkDrop. However,
nothing is stashing the drag away for further lookup. More work is
needed on GdkMacosDrag for that to be doable.
gdk/macos/GdkMacosWindow.c
gdk/macos/gdkmacosdisplay-private.h
gdk/macos/gdkmacosdisplay.c
gdk/macos/gdkmacosdrop-private.h [new file with mode: 0644]
gdk/macos/gdkmacosdrop.c [new file with mode: 0644]
gdk/macos/meson.build